import React from "react";
/* eslint no-nested-ternary:0 */
import { Icon, NavBar } from 'antd-mobile';
function MenuExample(props) {
    return (
        <NavBar
            mode="dark"
            icon={<Icon type="left" />}
            onLeftClick={() => { props.history.go(-1); }}
            rightContent={[
                <Icon key="0" type="search" style={{ marginRight: '16px' }} onClick={() => {  props.history.push("/novelSearch"); }} />,
            ]}
        >我的书城</NavBar>
    )
 }
export default MenuExample